//package com.xin.springboot.controller;
//
//
//import com.xin.springboot.component.ReadTest;
//import org.springframework.web.bind.annotation.CrossOrigin;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.io.File;
//import java.util.HashMap;
//
//@RestController
//public class labelController {
//    @GetMapping(value = "/label")
//    @CrossOrigin(origins = "http://10.100.146.96:8080", maxAge = 5000)
//    public HashMap<String, String> label() {
//        HashMap<String,String> map = new HashMap<>();
//        ReadTest readTest = new ReadTest();
//        File file = new File("C:\\Users\\x1893\\Desktop\\tf_model\\label.txt");
//        String label = readTest.txt2String(file);
//        System.out.println(label);
//        map.put("name",label);
//        return map;
//    }
//}
